package com.example.demo.service;

public interface RedisService {
    Object get(String key);

    boolean set(String key, Object value);

    /**
     *
     * @param key
     * @param value
     * @param seconds 时间(秒) time要大于0 如果time小于等于0 将设置无限期
     * @return
     */
    boolean set(String key, Object value, long seconds);

    void del(String... keys);
}
